package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.OmcMerchandise;
import com.csun.cmny.provider.model.dto.merchandise.MerchandiseQueryDto;
import com.csun.cmny.provider.model.dto.merchandise.MerchandiseselectDto;
import com.csun.cmny.provider.model.vo.MerchandiseDetailVo;
import com.csun.cmny.provider.model.vo.MerchandiseVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OmcMerchandiseMapper extends Mapper<OmcMerchandise> {

    List<MerchandiseVo> selectMerchandise(MerchandiseQueryDto merchandiseQueryDto);

    /*
    * 根据Id查询多条数据
    * */
    List<MerchandiseVo> selectByIdList(@Param("idList") List<Long> idList);

    List<MerchandiseVo> selectMerchandiseAndmerchant(MerchandiseselectDto merchandiseselectDto);

    List<MerchandiseDetailVo> selectBySecondId(Long secondLevelId);
}
